package com.liveinstars.api.facade;

import com.liveinstars.api.dto.ClockinDto;
import com.onepiece.shipelves.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("activity")
public interface IClockInApi {

    /**
     * 获取分页圈子列表
     * @param query
     * @return
     */
//    @GetMapping("/clockin/create")
//    Result create(@RequestBody ActivityNewQuery query);

    /**
     * 获取圈子详情
     * @param id
     * @return
     */
    @GetMapping("/clockin/getDetailById")
    Result<ClockinDto> getDetailById(@RequestParam(value = "id") Integer id);

    @GetMapping("/clockin/getMyClockIn")
    Result<ClockinDto> getMyClockIn(@RequestParam(value = "userId") Integer userId, @RequestParam(value = "activityId") Integer activityId);

    @PostMapping("/clockin/create")
    Result<ClockinDto> create(@RequestBody ClockinDto dto);
////    /**
////     * 创建
////     * @param dto
////     * @return
////     */
//    @PostMapping("/activity/create")
//    Result<ActivityDetailDto> create(@RequestBody ActivityDto dto);
////    /**
////     * 根据id更新数据群组信息
////     * @param vo
////     */
//    @PostMapping("/activity/updateById")
//    Result<ActivityDetailDto> updateById(@RequestBody ActivityDto vo);
////
////    /**
////     * 删除
////     * @param id
////     * @return
////     */
//    @GetMapping("/activity/deleteById")
//    Result deleteById(@RequestParam(value = "id") Integer id);
}
